/**
 * @author attilax 老哇的爪子
	@since  o0m k_t_53$
 */
package com.attilax.io;

import com.attilax.Closure;
import com.attilax.core;
import com.attilax.util.dirx;
import static com.attilax.core.*;
import java.util.*;
import java.net.*;
import java.io.*;

/**
 * @author attilax 老哇的爪子
 * @since o0m k_t_53$
 */
public class delFileBatchUtil_smpVer {
	public static int n;
	/**
	 * @author attilax 老哇的爪子
	 * @since o0m k_t_53
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("--f");
		// attilax 老哇的爪子 k_t_53 o0m

		final String strPath = "c:\\other\\eqmntDirO022";
		Closure closure = new Closure() {

			@Override
			public Object execute(Object arg0) throws Exception {
				// attilax 老哇的爪子 3:46:39 AM Aug 2, 2014

				{
					n++;
					System.out.println(n);
					try {
						String fname = arg0.toString();
						System.out.println(fname);
						String mainname=filex.getFileName_mainname(fname);
 						if (mainname.startsWith("eqmnt"))
 							new File(fname).delete();
						// System.out.println(fname);

						return null;
					} catch (Exception e) {
						e.printStackTrace();
					}

				}
				return arg0;

			}
		};
		 
		dirx.trave_files_noIncludeDir(strPath, closure);
		System.out.println("=---");

	}

}

// attilax 老哇的爪子